/*
 *全局参数业务逻辑层
 */
package com.uyayo.portal.biz;

import com.uyayo.system.config.service.SysParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ParamBiz {

	@Autowired
	private SysParamService paramsService;

	/**
	 * 获取管理模板前缀
	 * @return
	 */
	public String getManagerTemplatesPrefix(){
		return paramsService.getSysParamValueByCode("MANAGER_TEMPLATES");
	}
	
	/**
	 * 获取会员中心模板前缀
	 * @return
	 */
	public String getMemberTemplatesPrefix(){
		return paramsService.getSysParamValueByCode("MEMBER_TEMPLATES");
	}

	/**
	 * 获取门户模板前缀
	 * @return
	 */
	public String getWebsitTemplatesPrefix(){
		return paramsService.getSysParamValueByCode("WEBSITE_TEMPLATES");
	}
}
